<?php if(!defined('APP'))die('error!');?>
<!doctype html>
<html>
<header>
    <meta charset="UTF-8">
    <title>员工信息列表</title>
</header>
<body>
<div>员工信息列表</div>
<table>
    <tr>
        <th>id</th><th>姓名</th><th>所属部门</th><th>出生日期</th>
        <th>入职时间</th><th>相关操作</th>
    </tr>
    <?php if (!empty($emplo_infor){  ?>
        <?php foreach($emplo_infor as $row ){ ?>
            <tr>
                <td><?php echo $row['e_id'];?></td>
                <td><?php echo $row['e_name'];?></td>
                <td><?php echo $row['e_dept'];?></td>
                <td><?php echo $row['date_of_birdth'];?></td>
                <td><?php echo $row['date_of_entry'];?></td>
                <td><div><span>编辑&nbsp; &nbsp;删除</span></div></td>
            </tr>
        <?php }?>
    <?php } else{ ?>
        <tr><td colspan="6">暂无员工数据!</td> </tr>
    <?php }?>
</table>
</body>
</html>